package auction_bid

import (
	"context"
	"hotgo/internal/service"

	"hotgo/api/api/auction_bid/v1"
)

func (c *ControllerV1) AuctionLogAppointment(ctx context.Context, req *v1.AuctionLogAppointmentReq) (res *v1.AuctionLogAppointmentRes, err error) {
	r, e := service.SysAuctionLog().Appointment(ctx, &req.AppointmentInp)
	if e != nil {
		return nil, e
	}

	return &v1.AuctionLogAppointmentRes{
		AppointmentModel: r,
	}, nil
}
